import request from '@/utils/request';
import { getUserInfo } from "@/utils/auth";

// 查询字典
export function getDictionaryTypeApi(postBody) {
  postBody.userId = getUserInfo().userId;
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysEnumDictionaryType/getSysEnumDictionaryTypeListByPage',
    method: 'post',
    data: postBody
  });
}

// 删除字典类型
export function deleteSelectedDicTypeApi(ids) {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysEnumDictionaryType/deleteByList',
    method: 'post',
    data: {
      keyValues: ids
    }
  });
}
